package com.bawei.yangzongcai___day2.MaiDongFangHong.day3;

/**
 * create by ertu
 * create on 2021/7/28
 * description
 */

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

/***
 单例模式的TestManager
 */
public class TestManager {
    private List<Activity> list = new ArrayList<>();
    private static TestManager testManager;
    public static TestManager getInstance(){
        if(testManager == null){
            testManager = new TestManager();
        }
        return testManager;
    }

    public void add(Activity activity){
        list.add(activity);
    }



}


